<template>
    <el-form ref="scoreBasicInfoForm" :model="info" :rules="rules" label-width="150px" style="margin-top: 10px;">
        <el-row>
            <el-col :span="24">
                <el-form-item label="积分有效期：" prop="expireStart">
                    <el-date-picker
                        v-model="expireDate.date"
                        type="datetimerange"
                        range-separator="至"
                        start-placeholder="开始日期"
                        end-placeholder="结束日期" @change="expireDateFormat">
                    </el-date-picker>
                    <el-tooltip class="item" effect="dark" content="在此期间用户可有效获得及消费积分，到期后积分将被自动冻结三天后将会被自动清零。" placement="top-end">
                        <el-button style="margin-left: 10px">告警提示</el-button>
                    </el-tooltip>
                </el-form-item>
            </el-col>
<!--            <el-col :span="24" style="display: none">-->
<!--                <el-form-item label="每日登陆获取积分数:">-->
<!--                    <el-input v-model="info.loginScore" placeholder="请输入每日登陆获取积分数" style="width: 400px;"/>-->
<!--                </el-form-item>-->
<!--            </el-col>-->
        </el-row>
    </el-form>
</template>

<script>
export default {
    props: {
        info: {
            type: Object,
            default: null
        }
    },
    data() {
        return {
            // info:{},

        };
    },
    methods: {
        expireDateFormat(expire) {
            this.form.startTime = expire[0].toString();
            this.form.endTime = expire[1].toString();
            console.log("time")
        }
    }
};
</script>
